package cn.zw.design.decorator;

import java.util.Vector;


/**
 *    饮料的花费
 * @author Administrator
 *
 */
public abstract class Beverage {

	public String name ;
	protected Vector<String> condis = new Vector<String>();
	
	public Vector<String> getCondis() {
		return condis;
	};
	
	private float price;
	
	public float getPrice() {
		return price;
	}
	
	public void setPrice(Beverage beverage, float price) {
		synchronized (this) {
			beverage.price = beverage.price + price;
		}
	}
	public abstract void cost();
	
	
	
}
